﻿using CrateMayhem.Common.Services;
using CrateMayhem.Desktop.ViewModel;

namespace CrateMayhem.Desktop
{
    public partial class AutoCloseDialog
    {
        public AutoCloseDialog(IAutoCloseDialogService autoCloseDialogService, string message, int delayBeforeClose)
        {
            InitializeComponent();
            DataContext = new AutoCloseDialogViewModel(autoCloseDialogService, message, delayBeforeClose);
        }
    }
}
